<%@ page language="java"  pageEncoding="UTF-8" contentType="text/html;charset=utf-8"%>
<%@ include file="/includes/main.jsp"%>

<h2 class="contentTitle"><hi:text key="查看页面"  parameterLanguageKeys="班次"/></h2>
<div class="pageContent">
	
	<div class="viewInfo" layoutH="97">
				
		<dl>
			<dt><hi:text key="线路名称" entity="Trip"/>：</dt><dd>${trip.trip_model.trip_name}</dd>
		</dl>
		<dl>
			<dt><hi:text key="基础价" entity="Trip"/>：</dt><dd>${trip.price}</dd>
		</dl>
		<dl>
			<dt><hi:text key="限额" entity="Trip"/>：</dt><dd>${trip.seats_available}</dd>
		</dl>
		<dl>
			<dt><hi:text key="开班日期" entity="Trip"/>：</dt><dd><fmt:formatDate value="${trip.trip_date}" pattern="yyyy-MM-dd"/></dd>				  	 
		</dl>
		<dl>
			<dt><hi:text key="班次编号" entity="Trip"/>：</dt><dd>${trip.trip_code}</dd>
		</dl>
		<dl>
			<dt><hi:text key="班次折扣" entity="Trip"/>：</dt><dd>${trip.discount}</dd>
		</dl>
		<dl>
			<dt><hi:text key="折扣开始日期" entity="Trip"/>：</dt><dd><fmt:formatDate value="${trip.discount_startDate}" pattern="yyyy-MM-dd"/></dd>				  	 
		</dl>
		<dl>
			<dt><hi:text key="折扣结束时间" entity="Trip"/>：</dt><dd><fmt:formatDate value="${trip.discount_endDate}" pattern="yyyy-MM-dd"/></dd>				  	 
		</dl>

		<div class="divider"></div>
		
		<div class="tabs">
			<div class="tabsHeader">
				<div class="tabsHeaderContent">
					<ul>
						<li><a href="javascript:void(0)"><span><hi:text key="价格及返佣"/></span></a></li>
						<li><a href="javascript:void(0)"><span><hi:text key="特殊价格"/></span></a></li>
					</ul>
				</div>
			</div>
			<div class="tabsContent" style="height:120px;">
				<div style="overflow: auto">
					<table class="list" width="100%">
						<thead>
							<tr>
								<th><hi:text key="价格名称" entity="TripPrice"/></th>
								<th><hi:text key="散客返佣" entity="TripPrice"/></th>
								<th><hi:text key="团队返佣" entity="TripPrice"/></th>
								<th><hi:text key="网络追加返佣" entity="TripPrice"/></th>
								<th><hi:text key="成团标准" entity="TripPrice"/></th>
								<th><hi:text key="返佣对象" entity="TripPrice"/></th>
							</tr>
						</thead>
						<tbody>
							<c:forEach var="item" items="${trip.tripPrices}">
							<tr>						
								<td>${item.name}</td>
								<td>${item.individual_commission}</td>
								<td>${item.group_commission}</td>
								<td>${item.net_commission}</td>
								<td>${item.group_number}</td>
				        		<td><hi:select emu="commissionTo" name="item.to_whom" isLabel="true"/></td>
							</tr>
							</c:forEach>
						</tbody>
					</table>
				</div>
				<div style="overflow: auto">
					<table class="list" width="100%">
						<thead>
							<tr>
								<th><hi:text key="名称" entity="SpecialPrice"/></th>
								<th><hi:text key="价格" entity="SpecialPrice"/></th>
								<th><hi:text key="内容" entity="SpecialPrice"/></th>
							</tr>
						</thead>
						<tbody>
							<c:forEach var="item" items="${trip.specialPrices}">
							<tr>						
								<td>${item.name}</td>
								<td>${item.price}</td>
				        		<td><hi:select emu="tripService" name="item.content" isLabel="true"/></td>
							</tr>
							</c:forEach>
						</tbody>
					</table>
				</div>
				
			</div>
			<div class="tabsFooter">
				<div class="tabsFooterContent"></div>
			</div>
		</div>				
	</div>

	<div class="formBar">
		<ul>
			<li><div class="button"><div class="buttonContent"><button class="close" type="button"><hi:text key="关闭"/></button></div></div></li>
		</ul>
	</div>
</div>
